<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Jetson Inference: jetson-utils/Networking.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="NVLogo_2D.jpg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Jetson Inference
   </div>
   <div id="projectbrief">DNN Vision Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('Networking_8h.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Networking.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;string&gt;</code><br />
<code>#include &lt;vector&gt;</code><br />
<code>#include &quot;<a class="el" href="IPv4_8h_source.html">IPv4.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="IPv6_8h_source.html">IPv6.h</a>&quot;</code><br />
</div>
<p><a href="Networking_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:structNetworkInterface"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__network.html#structNetworkInterface">NetworkInterface</a></td></tr>
<tr class="memdesc:structNetworkInterface"><td class="mdescLeft">&#160;</td><td class="mdescRight">Info about a particular network interface.  <a href="group__network.html#structNetworkInterface">More...</a><br /></td></tr>
<tr class="separator:structNetworkInterface"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structNetworkInterface_1_1IPv4.html">NetworkInterface::IPv4</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structNetworkInterface_1_1IPv6.html">NetworkInterface::IPv6</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:gaadcbced28f4da19dc28dafcb1caf262b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__network.html#gaadcbced28f4da19dc28dafcb1caf262b">LOG_NETWORK</a>&#160;&#160;&#160;&quot;[network] &quot;</td></tr>
<tr class="memdesc:gaadcbced28f4da19dc28dafcb1caf262b"><td class="mdescLeft">&#160;</td><td class="mdescRight">LOG_NETWORK logging string.  <a href="group__network.html#gaadcbced28f4da19dc28dafcb1caf262b">More...</a><br /></td></tr>
<tr class="separator:gaadcbced28f4da19dc28dafcb1caf262b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga4eeeacba2fc1201c43d42a4f5145b825"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__network.html#ga4eeeacba2fc1201c43d42a4f5145b825">getHostname</a> ()</td></tr>
<tr class="memdesc:ga4eeeacba2fc1201c43d42a4f5145b825"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve the host system's network hostname.  <a href="group__network.html#ga4eeeacba2fc1201c43d42a4f5145b825">More...</a><br /></td></tr>
<tr class="separator:ga4eeeacba2fc1201c43d42a4f5145b825"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga604bb0e239d02117b959fda9ffd28c9a"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__network.html#ga604bb0e239d02117b959fda9ffd28c9a">getHostByName</a> (const char *name, uint32_t retries=10)</td></tr>
<tr class="memdesc:ga604bb0e239d02117b959fda9ffd28c9a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Resolve the IP address of a given hostname or domain using DNS lookup, and return it as a string.  <a href="group__network.html#ga604bb0e239d02117b959fda9ffd28c9a">More...</a><br /></td></tr>
<tr class="separator:ga604bb0e239d02117b959fda9ffd28c9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab8ffc5329146c2db42c61016dcc54c76"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__network.html#gab8ffc5329146c2db42c61016dcc54c76">getHostByName</a> (const char *name, void *ipAddress, uint32_t size, uint32_t retries=10)</td></tr>
<tr class="memdesc:gab8ffc5329146c2db42c61016dcc54c76"><td class="mdescLeft">&#160;</td><td class="mdescRight">Resolve the IP address of a given hostname or domain using DNS lookup.  <a href="group__network.html#gab8ffc5329146c2db42c61016dcc54c76">More...</a><br /></td></tr>
<tr class="separator:gab8ffc5329146c2db42c61016dcc54c76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab929e511b041783d8dd4650f17d80dbd"><td class="memItemLeft" align="right" valign="top">std::vector&lt; <a class="el" href="group__network.html#structNetworkInterface">NetworkInterface</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__network.html#gab929e511b041783d8dd4650f17d80dbd">getNetworkInterfaces</a> ()</td></tr>
<tr class="memdesc:gab929e511b041783d8dd4650f17d80dbd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve info about the different IPv4/IPv6 network interfaces of the system.  <a href="group__network.html#gab929e511b041783d8dd4650f17d80dbd">More...</a><br /></td></tr>
<tr class="separator:gab929e511b041783d8dd4650f17d80dbd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7961e41144dce09b53436883bf51f3e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="Networking_8h.html#ac7961e41144dce09b53436883bf51f3e">findNetworkInterface</a> (const std::vector&lt; <a class="el" href="group__network.html#structNetworkInterface">NetworkInterface</a> &gt; &amp;interfaces, const char *name)</td></tr>
<tr class="memdesc:ac7961e41144dce09b53436883bf51f3e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Find the index of a network interface by name from the list of interfaces.  <a href="Networking_8h.html#ac7961e41144dce09b53436883bf51f3e">More...</a><br /></td></tr>
<tr class="separator:ac7961e41144dce09b53436883bf51f3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad1ca82becf0918d589ec9938b51a977b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__network.html#gad1ca82becf0918d589ec9938b51a977b">printNetworkInterfaces</a> (const std::vector&lt; <a class="el" href="group__network.html#structNetworkInterface">NetworkInterface</a> &gt; &amp;interfaces)</td></tr>
<tr class="memdesc:gad1ca82becf0918d589ec9938b51a977b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Print out a list of network interfaces.  <a href="group__network.html#gad1ca82becf0918d589ec9938b51a977b">More...</a><br /></td></tr>
<tr class="separator:gad1ca82becf0918d589ec9938b51a977b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="ac7961e41144dce09b53436883bf51f3e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac7961e41144dce09b53436883bf51f3e">&#9670;&nbsp;</a></span>findNetworkInterface()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int findNetworkInterface </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="group__network.html#structNetworkInterface">NetworkInterface</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>interfaces</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Find the index of a network interface by name from the list of interfaces. </p>
<dl class="section return"><dt>Returns</dt><dd>the index of the interface, or -1 if it was not found. </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_54a0acf6da04fe2ed9410b4c6369bc5d.html">jetson-utils</a></li><li class="navelem"><a class="el" href="Networking_8h.html">Networking.h</a></li>
    <li class="footer">Generated on Tue Mar 28 2023 14:27:58 for Jetson Inference by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
